package com.ai.controller.made.ai_api;


import com.ai.annotation.EnterPathParamLog;
import com.ai.common.CommonResponse;
import com.ai.model.param.AlgorithmAlarmParam;
import com.ai.model.vo.CoalRoutingInspectionAlarmVo;
import com.ai.service.made.ICoalRoutingInspectionAlarmRecordService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 巡检告警接口
 * @author jiaok
 * @since 2024-10-29
 */
@RestController
@RequestMapping("/algorithmAPI/coal-routing-inspection-alarm-record")
public class CoalRoutingInspectionAlarmRecordController {

    @Resource
    private ICoalRoutingInspectionAlarmRecordService iCoalRoutingInspectionAlarmRecordService;


    @PostMapping("/addAlarm")
    @ApiOperation(value = "算法提交识别警告")
    @EnterPathParamLog
    public CommonResponse addAlarm(@ApiParam @RequestBody CoalRoutingInspectionAlarmVo coalRoutingInspectionAlarmVo) {

        return iCoalRoutingInspectionAlarmRecordService.addAlarm(coalRoutingInspectionAlarmVo);

    }



}
